import request from "@/utils/requestMd5";



export function invoicesorts_index(params) {//获取列表
    return request({
      url: "/invoicesorts/index",
      method: "get",
      params
    });
}
export function invoice_logs(params) { //获取记录
    return request({
      url: "/invoice/logs",
      method: "get",
      params
    });
}
export function invoice_index(params) { //获取历史单据
    return request({
      url: "/invoice/index",
      method: "get",
      params
    });
}
export function invoice_info(params) { //获取历史单据-查看
    return request({
      url: "/invoice/info",
      method: "get",
      params
    });
}
export function invoicesorts_getSortsAll(params) { //获取品名搜索
    return request({
      url: "/invoicesorts/getSortsAll",
      method: "get",
      params
    });
}
export function invoice_addOutTicket(data) { //发票管理 - 出票
    return request({
      url: "/invoice/addOutTicket",
      method: "post",
      data
    });
}
export function invoice_add(data) { //发票管理 - 收票
    return request({
      url: "/invoice/add",
      method: "post",
      data
    });
}